#include "PluginManagerExp.h"
#include "PluginManagerDef.h"

#include "PluginManager.h"
static QPluginManager*	g_pluginManager = NULL;
PLUGINMANAGER_EXPORT  void*  __stdcall createPluginManager()
{

	if(g_pluginManager == NULL)
		g_pluginManager = new QPluginManager;
	return g_pluginManager;
}

PLUGINMANAGER_EXPORT  void							__stdcall releasePluginManager()
{
	if(g_pluginManager)
		delete g_pluginManager;
	g_pluginManager = NULL;
}


#include "QCustomLibrary.h"
static  QCustomLibrary* g_customLibrary = NULL;
PLUGINMANAGER_EXPORT  void*		__stdcall  createCustomLibrary()
{
	if(g_customLibrary == NULL)
		g_customLibrary = new QCustomLibrary;
	return g_customLibrary;
}

PLUGINMANAGER_EXPORT  void							__stdcall releaseCustomLibrary()
{
	if(g_customLibrary)
		delete g_customLibrary;
	g_customLibrary = NULL;
}